package service;

import model.Race;

import java.util.List;

/**
 * @Author: 燕子豪
 * @Date: 2022/12/17 15:21
 */
public interface RaceService {

    Boolean update(Race race);

    Boolean insert(Race race);

    Boolean delete(int rid);

    List<Race> findByPartName(String partName, int pageIndex, int pageSize);

    List<Race> getAllRaces(int pageSize, int pageIndex);

    List<Race> getRacesByUser(int uid, int pageSize, int pageIndex);

    int countByName(String partName);

    int pageCount();

    int countByUser(int uid);

    Race getRaceById(int rid);
}
